﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ObviousCode.Stately.Exceptions
{
    /// <summary>
    /// Will not be caught by the State Observer
    /// 
    /// Use if unhandled exceptions are to be rethrown to avoid a stack overflow
    /// </summary>
    public class StatelyProcessException : Exception
    {
        public StatelyProcessException(string message) : this(new Exception(message))
        {

        }

        public StatelyProcessException(Exception innerException) :base(innerException.Message, innerException)
        {

        }
    }
}
